package cn.shop.cloud.service.impl;

import cn.shop.cloud.domain.User;
import cn.shop.cloud.mapper.UserMapper;
import cn.shop.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: IntelliJ IDEA
 * @ClassName: UserServiceImpl
 * @description:
 * @author: Song
 * @create: 2024-12-12 23 : 11
 * @version: 1.0
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User find(Long id) {
        User user = userMapper.selectByPrimaryKey(id);
        return user;
    }
}
